<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonGalleryViewport类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_gallery_viewport.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-slots">Public 槽</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_s_a_ribbon_gallery_viewport-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonGalleryViewport类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>SARibbonGallery的Viewport class  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_gallery_8h_source.html">SARibbonGallery.h</a>&gt;</code></p>
<div class="dynheader">
类 SARibbonGalleryViewport 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_ribbon_gallery_viewport.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-slots" name="pub-slots"></a>
Public 槽</h2></td></tr>
<tr class="memitem:af6638df65878d6593adc3306b7f5fba9" id="r_af6638df65878d6593adc3306b7f5fba9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af6638df65878d6593adc3306b7f5fba9">onTitleChanged</a> (QWidget *w, const QString &amp;title)</td></tr>
<tr class="memdesc:af6638df65878d6593adc3306b7f5fba9"><td class="mdescLeft">&#160;</td><td class="mdescRight">widget的标题改变  <br /></td></tr>
<tr class="separator:af6638df65878d6593adc3306b7f5fba9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aed775e884295bd964bad8e37afd6ca90" id="r_aed775e884295bd964bad8e37afd6ca90"><td class="memItemLeft" align="right" valign="top"><a id="aed775e884295bd964bad8e37afd6ca90" name="aed775e884295bd964bad8e37afd6ca90"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonGalleryViewport</b> (QWidget *parent)</td></tr>
<tr class="separator:aed775e884295bd964bad8e37afd6ca90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fbc0bc63f650a5b6b3217daba7d1fae" id="r_a4fbc0bc63f650a5b6b3217daba7d1fae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4fbc0bc63f650a5b6b3217daba7d1fae">addWidget</a> (QWidget *w)</td></tr>
<tr class="memdesc:a4fbc0bc63f650a5b6b3217daba7d1fae"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加窗口不带标题  <br /></td></tr>
<tr class="separator:a4fbc0bc63f650a5b6b3217daba7d1fae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4922b88a58048bbf90614e0763176526" id="r_a4922b88a58048bbf90614e0763176526"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4922b88a58048bbf90614e0763176526">addWidget</a> (QWidget *w, const QString &amp;title)</td></tr>
<tr class="memdesc:a4922b88a58048bbf90614e0763176526"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加窗口，带标题  <br /></td></tr>
<tr class="separator:a4922b88a58048bbf90614e0763176526"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a601a84bc7a361ab1f38341c6797b7606" id="r_a601a84bc7a361ab1f38341c6797b7606"><td class="memItemLeft" align="right" valign="top">QLabel *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a601a84bc7a361ab1f38341c6797b7606">titleLabel</a> (QWidget *w)</td></tr>
<tr class="memdesc:a601a84bc7a361ab1f38341c6797b7606"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过SARibbonGalleryGroup获取对应的标题，用户可以通过此函数设置QLabel的属性  <br /></td></tr>
<tr class="separator:a601a84bc7a361ab1f38341c6797b7606"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9d341caa55ca4ff843f0499a8dd5e6e" id="r_ac9d341caa55ca4ff843f0499a8dd5e6e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac9d341caa55ca4ff843f0499a8dd5e6e">removeWidget</a> (QWidget *w)</td></tr>
<tr class="memdesc:ac9d341caa55ca4ff843f0499a8dd5e6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除窗口  <br /></td></tr>
<tr class="separator:ac9d341caa55ca4ff843f0499a8dd5e6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>SARibbonGallery的Viewport class </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a4fbc0bc63f650a5b6b3217daba7d1fae" name="a4fbc0bc63f650a5b6b3217daba7d1fae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fbc0bc63f650a5b6b3217daba7d1fae">&#9670;&#160;</a></span>addWidget() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGalleryViewport::addWidget </td>
          <td>(</td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>w</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加窗口不带标题 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4922b88a58048bbf90614e0763176526" name="a4922b88a58048bbf90614e0763176526"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4922b88a58048bbf90614e0763176526">&#9670;&#160;</a></span>addWidget() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGalleryViewport::addWidget </td>
          <td>(</td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>w</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加窗口，带标题 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td></td></tr>
    <tr><td class="paramname">title</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af6638df65878d6593adc3306b7f5fba9" name="af6638df65878d6593adc3306b7f5fba9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6638df65878d6593adc3306b7f5fba9">&#9670;&#160;</a></span>onTitleChanged</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGalleryViewport::onTitleChanged </td>
          <td>(</td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>w</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>widget的标题改变 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">g</td><td></td></tr>
    <tr><td class="paramname">title</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac9d341caa55ca4ff843f0499a8dd5e6e" name="ac9d341caa55ca4ff843f0499a8dd5e6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9d341caa55ca4ff843f0499a8dd5e6e">&#9670;&#160;</a></span>removeWidget()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGalleryViewport::removeWidget </td>
          <td>(</td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>w</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移除窗口 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a601a84bc7a361ab1f38341c6797b7606" name="a601a84bc7a361ab1f38341c6797b7606"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a601a84bc7a361ab1f38341c6797b7606">&#9670;&#160;</a></span>titleLabel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QLabel * SARibbonGalleryViewport::titleLabel </td>
          <td>(</td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>w</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过SARibbonGalleryGroup获取对应的标题，用户可以通过此函数设置QLabel的属性 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">g</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果没有管理group，将返回nullptr </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_gallery_8h_source.html">SARibbonGallery.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonGallery.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_gallery_viewport.html">SARibbonGalleryViewport</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
